#include<graphics.h>
#include "E_Point.h"
#include "E_Transform.h"
using namespace std;
#define PI 3.1415926

int mainss() {
	HWND hwnd = initgraph(500, 500);
	setbkcolor(WHITE);
	cleardevice();
	setlinecolor(LIGHTBLUE);
	setlinestyle(PS_SOLID, 2);
	setorigin(250, 250);
	setaspectratio(1, -1);
	E_Point P[2] = {
		{0,0},
		{200,200}
	};
	E_Transform Rorate;
	Rorate.SetMatrix(P, 2);
	for (; 1;) {
		moveto(P[0].x, P[0].y);
		lineto(P[1].x, P[1].y);
		Rorate.E_Rotate(PI / 6);
		
		Sleep(1000);
		cleardevice();
	}
	closegraph();
	return 0;
}